/*https://assets.revcontent.com/master/delivery.js*/ ;try{/** [Delivery.js] Version: 0.1.0 - Friday, September 13th, 2024, 4:39:57 PM */ !function(e){function t(t){for(var n,r,o=t[0],a=t[1],s=0,u=[];s0},_=.95,b={privacy:"https://help.revcontent.com/en/knowledge/revcontent-privacy-policy",complaints:"https://help.revcontent.com/en/knowledge/fake-news-complaints"},w={INJECTION:"injection",DISPLACEMENT:"displacement"},y={PIC_TEXT_LINKS:2,STANDARD_HOVER_BLOCK:3,HOVER_BLOCK_LINKS:4,IN_ARTICLE:5,SINGLE_LINK_LIST:6,DOUBLE_LINK_LIST:7,IN_FEED_VIDEO:9,FEED:11,BRAND_TAKEOVER:"bt",RTB:"rtb"},x={DEFAULT:"DEFAULT",TWOCOLUMN:"TWOCOLUMN"},C={DESKTOP:(r={},r[x.DEFAULT]={index:1,span:2},r[x.TWOCOLUMN]={index:2,span:2},r),TABLET:(i={},i[x.DEFAULT]={index:1,span:2},i[x.TWOCOLUMN]={index:2,span:2},i),MOBILE:{DEFAULT:{index:0,span:2}}},k={DEFAULT:"DEFAULT",TWOCOLUMN:"TWOCOLUMN"},S={DESKTOP:(o={},o[k.DEFAULT]={index:0,span:2},o[k.TWOCOLUMN]={index:2,span:2},o),TABLET:(a={},a[k.DEFAULT]={index:0,span:2},a[k.TWOCOLUMN]={index:2,span:2},a),MOBILE:{DEFAULT:{index:0,span:2}}},O="https://cdnjs.cloudflare.com/v3/polyfill.min.js?features=Array.from%2CArray.prototype.every%2CArray.prototype.fill%2CArray.prototype.filter%2CArray.prototype.find%2CArray.prototype.findIndex%2CArray.prototype.flatMap%2CArray.prototype.forEach%2CArray.prototype.includes%2CArray.prototype.indexOf%2CArray.prototype.map%2CArray.prototype.reduce%2CArray.prototype.some%2CArray.prototype.sort%2CArray.prototype.%40%40iterator%2CArray.prototype.at%2CArray.prototype.copyWithin%2CAbortController%2Cfetch%2CIntersectionObserver%2CIntersectionObserverEntry%2CMutationObserver%2CResizeObserver%2CString.prototype.trim%2CString.prototype.trimStart%2CString.prototype.trimEnd%2CString.prototype.startsWith%2CString.prototype.includes%2CURLSearchParams%2CPromise%2CPromise.allSettled%2CPromise.any%2CPromise.prototype.finally%2CObject.entries%2CObject.values%2CCustomEvent&flags=gated",E=["/weather-news/","/severe-weather/","/winter-weather/","/space-news/","/health-wellness/","/weather-blogs/","/weather-forecasts/","/climate/","/accuweather-ready/","/travel/","/hurricane/","/leisure-recreation/","/business/","/press/","/sports/"],P=[272291],I={BULBASAUR:"bulbasaur",IVYSAUR:"ivysaur",VENASAUR:"venasaur"}},"2kSN":function(e,t,n){"use strict";(function(e){var r=n("QRet");t.a=function(t){var n=t.spotId;if(!n)return null;var i=Object(r.j)(null);return Object(r.d)((function(){if(i.current&&n&&!document.querySelector("#rc-openweb-"+n)){var e=document.createElement("script");e.id="rc-openweb-"+n,e.async=!0,e.src="https://launcher-sa.spot.im/spot/"+n,e.dataset.spotimAutorun=!1,e.dataset.spotimModule="spotim-launcher",i.current.appendChild(e)}}),[n,i.current]),e("div",{id:"rc-openweb-slot-"+n,ref:i},e("div",{"data-openweb-ad":!0,"data-row":"1","data-column":"1"}))}}).call(this,n("hosL").h)},"5+HP":function(e,t,n){"use strict";function r(e){return Boolean(e&&void 0!==e.length)}function i(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function a(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void c(t.promise,e)}s(t.promise,r)}else(1===e._state?s:c)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void d((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){c(e,t)}var r,i}function c(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t1)return!0;return!1}(e)?"tablet":function(e){return!!e.match(/ip(hone|od)|android.+mobile|windows (ce|phone)|blackberry|bb10|symbian|webos|firefox.+fennec|opera m(ob|in)i|tizen.+mobile|polaris|iemobile|lgtelecom|nokia|sonyericsson|dolfin|uzard|natebrowser|ktf;|skt;/)}(e)?"mobile":""}function i(e){var t={},r=/(iphone|ipad|ipod)[\S\s]*os ([\w._\-]+) like/.exec(e)||!!/polaris|natebrowser|([010|011|016|017|018|019]{3}\d{3,4}\d{4}$)/.test(e)&&["","polaris","0.0.0"]||/(windows)(?: nt | phone(?: os){0,1} | )([\w._\-]+)/.exec(e)||/(android)[ \/]([\w._\-]+);/.exec(e)||!!/android/.test(e)&&["","android","0.0.0"]||!!/(windows)/.test(e)&&["","windows","0.0.0"]||/(mac) os x ([\w._\-]+)/.exec(e)||/(tizen)[ \/]([\w._\-]+);/.exec(e)||!!/(linux)/.test(e)&&["","linux","0.0.0"]||!!/webos/.test(e)&&["","webos","0.0.0"]||/(cros)(?:\s[\w]+\s)([\d._\-]+)/.exec(e)||/(bada)[ \/]([\w._\-]+)/.exec(e)||!!/bada/.test(e)&&["","bada","0.0.0"]||!!/(rim|blackberry|bb10)/.test(e)&&["","blackberry","0.0.0"]||["","unknown","0.0.0"];return"iphone"===r[1]||"ipad"===r[1]||"ipod"===r[1]?r[1]="ios":"windows"===r[1]&&"98"===r[2]&&(r[2]="0.98.0"),"mac"===r[1]&&"undefined"!=typeof window&&window.navigator&&window.navigator.maxTouchPoints>1&&(r[1]="ios"),"cros"===r[1]&&(r[1]="chrome"),t[r[1]]=!0,t.name=r[1],t.version=n(r[2]),t}function o(e,t){var r={},i=null,o=a;Array.isArray(t)?o=a.concat(t):"string"==typeof t&&(o=a.concat([t]));for(var s=0,c=o.length;s0&&(r=t.map((function(t){return e("img",{src:t,style:{display:"none"},alt:""})}))),n&&n.length>0&&(i=e("img",{src:n,style:{display:"none"}})),[].concat(r,[i])},A=function(t,n){var r;return n&&(r=e("img",{style:"margin-left: 5px;",class:"widget-adchoices-icon",src:n})),e("div",{class:"rc-branding rc-branding-label rc-brand-content",style:"white-space: nowrap !important; display: flex; align-items: center;"},t,r)},m=function(e){var t,n,r,i,o,a,s,c="",u=0;for(e=g(e);u>2,o=(3&t)<<4|(n=e.charCodeAt(u++))>>4,a=(15&n)<<2|(r=e.charCodeAt(u++))>>6,s=63&r,isNaN(n)?a=s=64:isNaN(r)&&(s=64),c=c+l.charAt(i)+l.charAt(o)+l.charAt(a)+l.charAt(s);return c},g=function(e){e=e.replace("/\r\n/g","\n");for(var t="",n=0;n127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},v=function(e,t,n,r,i){return void 0===r&&(r=!1),r?Object(a.s)(e/(a.g.max_columns/t),i):"rc-g-p"===n&&12===t?e/(a.g.max_columns/t)*.7:e/(a.g.max_columns/t)*a.g.ratios[d[t]]},_=function(e,t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),"rc-g-p"===n&&12===t||i?e*(t/a.g.max_columns):e*(t/a.g.max_columns)-(r?0:a.g.gutter)},b=function(e,t,n,r,i){void 0===n&&(n=!1),void 0===r&&(r=!1);var o=100/e,s=0,c=0;return o>=20&&(c=(s=a.n.mini.width)*a.n.mini.ratio),o>=30&&(c=(s=a.n.small.width)*a.n.medium.ratio),o>=45&&(c=(s=a.n.medium.width)*a.n.medium.ratio),o>=50&&t.width<6&&(c=(s=a.n.medium_plus.width)*a.n.medium_plus.ratio),o>=70&&(c=(s=a.n.large.width)*a.n.large.ratio),r?"\n width: "+(s=i-a.g.gutter)+"px;\n height: "+(c=.5*s)+"px;\n ":n?{width:s,height:c}:"\n flex-basis: "+s+"px;\n flex-grow: 0;\n flex-shrink: 0;\n height: "+c+"px;\n "},w=function(e,t,n){return n.width<6&&(null==e?void 0:e.length)>t?e.substring(0,t)+"...":e},y=["C","canary","canonicalUrl","clientId","container","data","domFingerprint","initialLayoutRect","initialIntersection","pageViewId","referrer","startTime","tagName","widgetid","subids","view","adBlocked","width","height"],x=function(e){var t={};return Object.keys(e).filter((function(e){return y.includes(e)})).forEach((function(n){return t[n]=e[n]})),t},C=function(e,t,n){if(!e||!n)return null;"sponsored"===e.type||1==t&&"trending"===e.type?n.rel="nofollow noskim sponsored noopener":"trending"===e.type&&(n.rel="noskim")},k="rc",S="stack",O="brand-takeover",E="content",P=function(e,t){return t?O:-1!==e.indexOf("revcontent")?k:-1!==e.indexOf("stacksocialcontent")?S:E},I=function(e){var t;for(var n in a.k)if(e0&&t&&!o.viewed&&n&&(o.viewed=!0,o.index=i,a(o,s))}),e)},L=function(e,t,n,r,i,o,a,s,c,u){setTimeout((function(){r>0&&t&&(!o.viewed&&n&&(o.viewed=!0,o.index=i,a(o)),!u&&c&&s(!0),c||s(!1))}),e)},N=function(e,t,n){return!!(e&&t&&t.includes(n))},U=function(){var e=c.a.userAgent();return"mobile"===e.platform?"mobile":"tablet"===e.platform?"tablet":"pc"===e.platform&&!("msie"===e.browser.name&&e.browser.version.major<=11)&&"desktop"},D=function(e,t,n,r,i,o,s,c){var u,l,d=[].concat(e);s===a.i.INJECTION&&o?d.push(((u={})[c]=t,u.column=n,u)):d.splice(i,0,((l={})[c]=t,l.column=r,l));return d},B=function(e,t,n,r){var i,o=[].concat(e);return o.splice(t,0,((i={})[r]="minuteMedia",i.column=n,i)),o},z=function(e,t,n,r){var i,o=[].concat(e);return o.splice(t,0,((i={})[r]="aniView",i.column=n,i)),o},W=function(e,t,n,r,i){void 0===i&&(i=!1);var o=[],a=0,s=0,c=parseInt(t,10);return e.forEach((function(e,t){if(s=n.__.length&&n.__.push({}),n.__[e]}function i(e){return C=1,o(_,e)}function o(e,t,n){var i=r(b++,2);return i.t=e,i.__c||(i.__=[n?n(t):_(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=w),i.__}function a(e,t){var n=r(b++,3);!x.options.__s&&v(n.__H,t)&&(n.__=e,n.__H=t,w.__H.__h.push(n))}function s(e,t){var n=r(b++,4);!x.options.__s&&v(n.__H,t)&&(n.__=e,n.__H=t,w.__h.push(n))}function c(e){return C=5,l((function(){return{current:e}}),[])}function u(e,t,n){C=6,s((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function l(e,t){var n=r(b++,7);return v(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function d(e,t){return C=8,l((function(){return e}),t)}function p(e){var t=w.context[e.__c],n=r(b++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(w)),t.props.value):e.__}function f(e,t){x.options.useDebugValue&&x.options.useDebugValue(t?t(e):e)}function h(e){var t=r(b++,10),n=i();return t.__=e,w.componentDidCatch||(w.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function A(){k.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(m),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],x.options.__e(t,e.__v)}})),k=[]}function m(e){var t=w;"function"==typeof e.__c&&e.__c(),w=t}function g(e){var t=w;e.__c=e.__(),w=t}function v(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function _(e,t){return"function"==typeof t?t(e):t}n.d(t,"k",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"j",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return h}));var b,w,y,x=n("hosL"),C=0,k=[],S=x.options.__b,O=x.options.__r,E=x.options.diffed,P=x.options.__c,I=x.options.unmount;x.options.__b=function(e){w=null,S&&S(e)},x.options.__r=function(e){O&&O(e),b=0;var t=(w=e.__c).__H;t&&(t.__h.forEach(m),t.__h.forEach(g),t.__h=[])},x.options.diffed=function(e){E&&E(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==k.push(t)&&y===x.options.requestAnimationFrame||((y=x.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),R&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);R&&(t=requestAnimationFrame(n))})(A)),w=void 0},x.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(m),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],x.options.__e(n,e.__v)}})),P&&P(e,t)},x.options.unmount=function(e){I&&I(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(m)}catch(e){x.options.__e(e,t.__v)}};var R="function"==typeof requestAnimationFrame},QfWi:function(e,t,n){"use strict";n.r(t),function(e){n("wthT");var t=n("eJJ5"),r=n.n(t),i=n("hosL"),o=n("dUsk"),a=n("duBu"),s=n("HGy1"),c=n("2Usk");Promise._unhandledRejectionFn=function(e){console.warn("Unhandled Promise Rejection",e)},Promise._immediateFn=r.a;var u=function(){var e=Array.from(document.querySelectorAll("[data-rc-widget], [data-stack-widget], [data-widget-placement], [data-rc-next-widget]"));window.revcontent||(window.revcontent={pageviewed:!1,renderedWidgets:[],adblocked:null}),window.revcontent&&!window.revcontent.renderedWidgets&&(window.revcontent.renderedWidgets=[]),window.renderRCWidget||(window.renderRCWidget=function(e){l(e)}),function(e){if(window.context){var t=document.createElement("div");t.setAttribute("data-widget-host",window.data.habitat?window.data.habitat:"habitat"),t.setAttribute("data-endpoint",window.data.endpoint),t.setAttribute("data-widget-id",window.data.id),window.data.gdpr&&t.setAttribute("data-gdpr",window.data.gdpr),window.data.gdprConsent&&t.setAttribute("data-gdpr-consent",window.data.gdprConsent),window.data.usPrivacy&&t.setAttribute("data-us-privacy",window.data.usPrivacy),window.data.gpp&&t.setAttribute("data-gpp",window.data.gpp),window.data.gppSid&&t.setAttribute("data-gpp-sid",window.data.gppSid),window.data.subIds&&t.setAttribute("data-sub-ids",window.data.subIds),window.data.rcAmpNotify&&t.setAttribute("data-rc-amp-notify",window.data.ampNotify),window.context.sourceUrl&&t.setAttribute("data-source-url",window.context.sourceUrl),window.data.gamEnabled&&t.setAttribute("data-gam-enabled",!0),document.body.appendChild(t),e.push(t)}}(e),e.length>0&&e.forEach((function(e){void 0!==e.dataset.directDelivery||void 0!==e.dataset.disableDemand?l(e):Object(s.r)().then((function(t){return l(e,t)})).catch((function(){return l(e)}))}))},l=function(t,n){var r,s,u;void 0===n&&(n=null);var l=null==(r=window)?void 0:r.location.href;if(-1===(null==(s=window.revcontent)||null==(u=s.renderedWidgets)?void 0:u.indexOf(t))){var d,p,f;null==(d=window.revcontent)||null==(p=d.renderedWidgets)||p.push(t);var h=t.getAttribute("data-endpoint");if(c.f.includes(parseInt(t.dataset.widgetId,10))&&Object(c.u)(l)){var A=document.currentScript;return t.parentNode.removeChild(t),void A.parentNode.removeChild(A)}h=h?h.replace(/\/\//,""):"",Object(i.render)(e(o.b,{widgethost:t.getAttribute("data-widget-host"),isCircuitBreaker:t.getAttribute("data-circuit-breaker"),widgetid:t.getAttribute("data-widget-id"),endpoint:h,idHub:n,isGamEnabled:t.getAttribute("data-gam-enabled"),imageQuality:t.getAttribute("data-image-quality"),videoEnabled:t.getAttribute("data-video-enabled"),subids:t.getAttribute("data-sub-ids"),redirected:t.getAttribute("data-widget-redirected"),bannerSize:t.getAttribute("data-banner-size"),rtbInfo:t.getAttribute("data-rtb-info"),gdpr:t.getAttribute("data-gdpr"),gdprConsent:t.getAttribute("data-gdpr-consent"),usPrivacy:t.getAttribute("data-us-privacy"),gpp:t.getAttribute("data-gpp"),gppSid:t.getAttribute("data-gpp-sid"),siteurl:t.getAttribute("data-source-url"),icrurl:t.getAttribute("data-icr-url"),revmore:t.getAttribute("data-rev-more"),revmoreDevices:t.getAttribute("data-rev-more-devices"),revmorePreviewHeight:t.getAttribute("data-rev-more-preview-height"),revmoreButtonText:t.getAttribute("data-rev-more-button-text"),revmoreWrapperId:t.getAttribute("data-rev-more-wrapper-id"),clickTracker:t.getAttribute("data-click-tracker"),rcAmpNotify:t.getAttribute("data-rc-amp-notify"),clickTrackerMethod:t.getAttribute("data-click-tracker-method"),disableDemand:t.getAttribute("data-disable-demand"),countryCode:t.getAttribute("data-country-code"),widgetWidth:null==(f=t.parentElement)?void 0:f.clientWidth,mockRtb:t.getAttribute("data-mock-rtb"),reqId:t.getAttribute("data-req-uuid")},e(a.a,null)),t)}};if(function(){try{return new Function("async (x = 0) => x"),!1}catch(e){return!0}}()){var d=document.createElement("script");d.async=!0,d.src=c.p,d.onload=function(){return u()},d.onabort=function(){return u()},d.onerror=function(){return u()},document.body.appendChild(d)}else u()}.call(this,n("hosL").h)},UutA:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}function c(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=se(t%52)+n;return(se(t%52)+n).replace(ae,"$1-$2")}function u(e){for(var t=0;t0&&(n[0]=n[0].replace(i,h))},f,function(e){if(-2===e){var t=p;return p=[],t}}])),t.hash=l.length?l.reduce((function(e,t){return t.name||s(15),ce(e,t.name)}),5381).toString():"",t}function d(){return Object(C.useContext)(he)||me}function p(){return Object(C.useContext)(Ae)||ge}function f(e){var t=Object(C.useState)(e.stylisPlugins),n=t[0],r=t[1],i=d(),o=Object(C.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=Object(C.useMemo)((function(){return l({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(C.useEffect)((function(){S()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),C.default.createElement(he.Provider,{value:o},C.default.createElement(Ae.Provider,{value:a},e.children))}function h(e){return _e.test(e)?e.replace(be,ye).replace(we,"-ms-"):e}function A(e,t,n,r){if(Array.isArray(e)){for(var o,s=[],c=0,u=e.length;c1?t-1:0),r=1;r1?t-1:0),r=1;r=0||(i[n]=e[n]);return i}(t,["componentId"]),s=i&&i+"-"+(v(e)?e:g(o(e)));return w(e,r({},a,{attrs:y,componentId:s}),n)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=s?b({},e.defaultProps,t):t}}),k.toString=function(){return"."+k.styledComponentId},c&&j()(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}function y(e){function t(e){var t=d(),r=p(),i=Object(C.useContext)(Ie),o=Object(C.useRef)(t.allocateGSInstance(c)).current;return Object(C.useLayoutEffect)((function(){return n(o,e,t,i,r),function(){return u.removeStyles(o,t)}}),[o,e,t,i,r]),null}function n(e,n,i,o,a){if(u.isStatic)u.renderStyles(e,W,i,a);else{var s=r({},n,{theme:Ce(n,o,t.defaultProps)});u.renderStyles(e,s,i,a)}}for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;ar&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(A,"$1"+e.trim());case 58:return e.trim()+t.replace(A,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0f)&&(z=(F=F.replace(" ",":")).length),0=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&s(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(D))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(D,"active"),r.setAttribute("data-styled-version","5.3.0");var a=J();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},ee=function(){function e(e){var t=this.element=Z(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")})),r+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),ae=/(a)(d)/gi,se=function(e){return String.fromCharCode(e+(e>25?39:97))},ce=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ue=function(e){return ce(5381,e)},le=ue("5.3.0"),de=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&u(e),this.componentId=t,this.baseHash=ce(le,t),this.baseStyle=n,oe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=A(this.rules,e,t,n).join(""),a=c(ce(this.baseHash,o.length)>>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,l=ce(this.baseHash,n.hash),d="",p=0;p>>0);if(!t.hasNameForId(r,g)){var v=n(d,"."+g,void 0,r);t.insertRules(r,g,v)}i.push(g)}}return i.join(" ")},e}(),pe=/^\s*\/\/.*$/gm,fe=[":","[",".","#"],he=C.default.createContext(),Ae=C.default.createContext(),me=new oe,ge=l(),ve=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ge);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return s(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ge),this.name+e.hash},e}(),_e=/([A-Z])/,be=/([A-Z])/g,we=/^ms-/,ye=function(e){return"-"+e.toLowerCase()},xe=function(e){return null==e||!1===e||""===e},Ce=(new Set,function(e,t,n){return void 0===n&&(n=U),e.theme!==n.theme&&e.theme||t||n.theme}),ke=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Se=/(^-|-$)/g,Oe=function(e){return c(ue(e)>>>0)},Ee=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Pe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e},Ie=C.default.createContext(),Re={},je=function(e){return function e(t,n,i){if(void 0===i&&(i=U),!Object(x.isValidElementType)(n))return s(1,String(n));var o=function(){return t(n,i,m.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,r({},i,{},o))},o.attrs=function(o){return e(t,n,r({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},o}(w,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){je[e]=je(e)}));var Te=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=u(e),oe.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(A(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&oe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=J();return""},this.getStyleTags=function(){return e.sealed?s(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return s(2);var n=((t={})[D]="",t["data-styled-version"]="5.3.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),i=J();return i&&(n.nonce=i),[C.default.createElement("style",r({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new oe({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?s(2):C.default.createElement(f,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(){return s(3)}})(),t.b=je},Z3s7:function(e,t){"use strict";t.a=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}},bHZ2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t){var n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)}},dUsk:function(e,t,n){"use strict";(function(e){function r(){return(r=Object.assign||function(e){for(var t=1;t0?(r.fireViewEvent(r.viewQueue,!1,!1),r.fireViewEvent(r.statsPayloadQueue,!0,!0)):t&&r.dbcooperTrendingViewQueue.length>0&&(r.fireViewEvent(r.dbcooperTrendingViewQueue,!1,!0),r.fireViewEvent(r.dbcooperTrendingStatsPayloadQueue,!0,!0))}),300))},r.fireViewEvent=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),t)r.viewQueue=[],e.forEach((function(e){e.viewed&&!e.viewFired&&(e.viewFired=!0,r.viewed.push(e))}));else{if(r.state.isCircuitBreaker)return;r.viewQueue=[];var i=new URLSearchParams,o=r.state.newView?r.state.newView:r.state.view;if(n&&(o=r.state.dbcooperTrendingViewHash),i.append("view",o),i.append("adblocked",r.props.adblocked),r.hasWidgetView||r.state.newView||r.state.dbcooperTrendingViewHash?i.append("view_type","fill"):(i.append("view_type","widget"),r.hasWidgetView=!0),e.forEach((function(e){r.hasRecordedImpression||r.fireImpressionEvent(),e.viewed&&!e.viewFired&&(i.append("p[]",e.index),e.viewFired=!0,r.viewed.push(e))})),r.state.isAppleNews){i.append("wid",r.props.widgetid),i.append("pubid",r.state.pub_id);var a=i.toString();fetch("https://"+r.state.view_event_endpoint+"?"+a).then((function(){return r.loadViewTrackers(e)})).catch((function(e){var t={endpoint:"view",error:e.message,widgetid:r.props.widgetid,site_url:r.state.siteUrl};Object(v.H)(t,"events/api-errors",!0,!0)}))}else{var s="https://"+r.props.endpoint+"/event/view";r.state.view_event_endpoint&&(s="https://"+r.state.view_event_endpoint),fetch(s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:i}).then((function(){return r.loadViewTrackers(e)})).catch((function(e){var t={endpoint:"view",error:e.message,widgetid:r.props.widgetid,site_url:r.state.siteUrl};Object(v.H)(t,"events/api-errors",!1,!0)}))}}},r.updateItems=function(e,t){if(t&&r.state.items){var n=decodeURIComponent(t.target_url);t.hash=n.substring(n.lastIndexOf("d=")+2,n.length),t.uid=decodeURIComponent(t.id)}},r.updateItem=function(e,t,n){if(n){var i=r.state.repeatItems;i.forEach((function(n){n.forEach((function(r,i){r.id===e&&(n[i]=t)}))})),r.setContextState("repeatItems",i)}else{var o=r.state.items.findIndex((function(t){return t.id===e})),a=r.state.items;a[o]=t,r.setContextState("items",a)}},r.getRepeatItemsLength=function(){if(r.state.repeatItems){var e=0;return r.state.repeatItems.forEach((function(t){t.forEach((function(){e++}))})),e}},r.prepImpressionEvent=function(){window.context||r.state.isAppleNews||(r.state.isWebView||r.props.isWindowFocused)&&r.fireImpressionEvent()},r.fireImpressionEvent=function(){if(!r.state.isCircuitBreaker&&!r.hasRecordedImpression){r.hasRecordedImpression=!0;var e=new URLSearchParams,t={v:r.state.view,r:document.referrer?encodeURIComponent(document.referrer.substr(0,700)):"",l:encodeURIComponent(r.state.siteUrl.substr(0,700)),f:window.location!==window.parent.location,variant:r.state.split_test,adblocked:r.props.adblocked};for(var n in t.client_version=r.state.client_version,t)e.append(n,t[n]);if(r.state.isAppleNews){e.append("wid",r.props.widgetid),e.append("pubid",r.state.pub_id);var i=e.toString();fetch("https://"+r.state.imp_event_endpoint+"?"+i).catch((function(e){var t={endpoint:"impression",error:e.message,widgetid:r.props.widgetid,site_url:r.state.siteUrl};Object(v.H)(t,"events/api-errors",!0,!0)}))}else fetch("https://"+r.props.endpoint+"/event/impression",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:e}).catch((function(e){var t={endpoint:"impression",error:e.message,widgetid:r.props.widgetid,site_url:r.state.siteUrl};Object(v.H)(t,"events/api-errors",!1,!0)}))}},r.applyCustomCss=function(){if(r.state.custom_css){var e=document.createElement("style");e.innerHTML=r.state.custom_css,document.body.appendChild(e)}},r.loadViewTrackers=function(e){e.forEach((function(e){e.viewtrackers&&e.viewtrackers.forEach((function(e){var t=Object(v.c)(e);document.body.appendChild(t)}))}))},r.loadMoreContent=function(){if(0===r.state.repeatSponsoredCount){var e,t=0,n=0;null==(e=r.state.grid_settings.repeat.rows)||e.forEach((function(e){e.columns.forEach((function(e){"sponsored"===e.type&&t++,"trending"!==e.type&&"house"!==e.type||n++}))})),r.setState(o(o({},r.state),{},{repeatSponsoredCount:t,repeatTrendingCount:n}))}for(var i="&site_url="+encodeURIComponent(r.state.siteUrl),a="&icr_url="+encodeURIComponent(r.state.icrUrl),s=null!==r.state.gdpr?"&gdpr="+r.state.gdpr:"",c=null!==r.state.gdprConsent?"&gdpr_consent="+r.state.gdprConsent:"",u=null!==r.state.usPrivacy?"&us_privacy="+r.state.usPrivacy:"",l=null!==r.state.gpp?"&gpp="+r.state.gpp:"",d=null!==r.state.gppSid?"&gpp_sid="+r.state.gppSid:"",p=null!=r.state.revAllowCookies?"&rev_allow_cookies="+r.state.revAllowCookies:"",f="&va="+r.state.isVideoAutoplayAllowed,h=null!=r.getCriteoRTUSId()?"&criteo_rtus="+r.getCriteoRTUSId():"",A="&style_id="+(r.state.styleId||0),m="&an="+r.state.isAppleNews,g=null!=r.state.mockRtb?"&mr="+r.state.mockRtb:"",_=null!=r.props.reqId?"&rq="+r.props.reqId:"",b="",w=0,y=Object.entries(r.getRtbUid());w=170&&r.loadedItems.splice(0,10),r.loadedItems.push(e.type+"_"+e.id),"trending"===e.type&&r.icrOffset++}))},r.getInitialContentCounts=function(){var e=0,t=0;r.state.grid_settings.initial.rows.forEach((function(n){n.columns.forEach((function(n){"sponsored"===n.type&&e++,"trending"!==n.type&&"house"!==n.type||t++}))})),r.setState(o(o({},r.state),{},{totalSponsoredCount:e,totalTrendingCount:t}))},r.getContentCounts=function(){if((0===r.state.repeatSponsoredCount||0===r.state.repeatTrendingCount)&&r.state.grid_settings.repeat){var e=0,t=0;r.state.grid_settings.repeat.rows&&r.state.grid_settings.repeat.rows.forEach((function(n){n.columns&&n.columns.forEach((function(n){"sponsored"===n.type&&e++,"trending"===n.type&&t++}))})),r.setState(o(o({},r.state),{},{repeatSponsoredCount:e,repeatTrendingCount:t}))}},r.setExcoDefaultsIfNeeded=function(e,t,n,r){var i,o;return!r||e||t?e||t?(i=e,o=t):(i=n.columns,o=2):(o="1f"===n.rows?2:1,i=0),{excoIndex:i,excoColumnSpan:o}},r.setExcoPosition=function(e,t,n,i,o,a,s,c,u){void 0===c&&(c=!1),void 0===u&&(u=!1);var l=Object(v.C)(e,i);if(!u)return Object(v.A)(e,t,parseInt(i,10),n,s,l);r.setContextState("items",Object(v.A)(e,t,parseInt(i,10),n,s,l))},r.getMMDeviceSettings=function(e,t){var n="113901"===t?g.m.TWOCOLUMN:g.m.DEFAULT;return"rc-g-p"===e?g.l.MOBILE.DEFAULT:"rc-g-t"===e?g.l.TABLET[n]:g.l.DESKTOP[n]},r.getAniviewDeviceSettings=function(e){var t=g.c.DEFAULT;return"rc-g-p"===e?g.b.MOBILE.DEFAULT:"rc-g-t"===e?g.b.TABLET[t]:g.b.DESKTOP[t]},r.loadData=function(){var e="";if(r.props.subids)for(var t=0,n=Object.entries(JSON.parse(r.props.subids));t0||!1,R=null==(u=e.brand_logo)?void 0:u.includes("full_color_name");r.setState(o(o(o({},r.state),e),{},{currentDevice:Object(v.l)(),isFeedRepeatable:I,brandPrefix:Object(v.j)(r.props.endpoint,e.isBrandTakeover),items:f,isFullNameBranding:R,isExco:h,showMMPlayer:m,theme:N,view:decodeURIComponent(e.view),beacons:(null==(l=e.beacons)?void 0:l.length)>0?e.beacons:null,columns:null==(d=e.grid)?void 0:d.columns,rows:null==(p=e.grid)?void 0:p.rows,custom_css:e.css,isCircuitBreaker:!0===e.circuit_breaker,styleId:e.feed_split_style,has_rtbs_video:f.reduce((function(e,t){return t.vast_url||t.vast?e+1:e}),0)>0,showArticleCirculation:!1}),(function(){!e.properVideoSlotId||null===r.state.videoEnabled&&"true"!==r.state.videoEnabled||Object(v.t)(e.properVideoPubId,r.props.widgetid),r.normalizeEndpointURLs(),r.applyCustomCss(),e.grid_settings&&(r.getContentCounts(),r.getInitialContentCounts(),r.appendLoadedItems(e.items))}))})).catch((function(e){var t={endpoint:"delivery",error:e.message,widgetid:r.props.widgetid,site_url:r.state.siteUrl};Object(v.H)(t,"events/api-errors",r.state.isAppleNews,!0)}))},r.loadPrebid=function(){return new Promise((function(e,t){return Promise.resolve(n.e(16).then(n.bind(null,"a1fm")).then((function(e){return e.default}))).then((function(){try{return e()}catch(e){return t(e)}}),t)}))},r.handleBPAction=function(e,t,n){e.preventDefault(),r.setState(o(o({},r.state),{},n?{BPIsVisible:!1}:{BPIsVisible:!0,currentBPDisplayItem:t}))},r.setVideoAutoplayAllowed=function(){return new Promise((function(e){var t=document.createElement("video");return t.style="display: none",t.muted=!0,t.controls=!0,t.preload="auto",t.setAttribute("playsinline",""),t.setAttribute("webkit-playsinline",""),t.src="data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE=",document.body.appendChild(t),e(Object(v.x)(150,t.play().then((function(){return!0})).catch((function(){return!1})).then((function(e){return r.setState({isVideoAutoplayAllowed:e?1:0},(function(){return document.body.removeChild(t),Promise.resolve()}))}))))}))},r.checkJWPlayer=function(){var e=setInterval((function(){"function"==typeof jwplayer&&"function"==typeof jwplayer().on&&(jwplayer().on("adImpression",(function(){var e,t=null==(e=r.widgetWrapperRef)?void 0:e.current.querySelectorAll("video");t.length>0&&t.forEach((function(e){return e.pause()}))})),jwplayer().on("adPause",(function(){var e,t=null==(e=r.widgetWrapperRef)?void 0:e.current.querySelectorAll("video");t.length>0&&t.forEach((function(e){return e.play()}))})),jwplayer().on("adPlay",(function(){var e,t=null==(e=r.widgetWrapperRef)?void 0:e.current.querySelectorAll("video");t.length>0&&t.forEach((function(e){return e.pause()}))})),jwplayer().on("adComplete",(function(){var e,t=null==(e=r.widgetWrapperRef)?void 0:e.current.querySelectorAll("video");t.length>0&&t.forEach((function(e){return e.play()}))})),clearInterval(e))}),200)},r.loadDemand=function(){if(document&&"1"===Object(v.k)("rev_opt_out"))return{cm_urls:[],rev_allow_cookies:0,criteo_rtus:0};var e=null!==r.state.gdpr?"&gdpr="+r.state.gdpr:"",t=null!==r.state.gdprConsent?"&gdpr_consent="+r.state.gdprConsent:"",n=null!==r.state.usPrivacy?"&us_privacy="+r.state.usPrivacy:"",i=null!==r.state.gpp?"&gpp="+r.state.gpp:"",o=null!==r.state.gppSid?"&gpp_sid="+r.state.gppSid:"",a=r.state.isRCBranded?"":"&wlw="+r.state.whitelabelDomain,s={timeout:400};return r.state.isAppleNews||(s.credentials="include"),Object(v.i)("https://"+r.props.endpoint+"/api/demand/?w="+r.props.widgetid+e+t+n+i+o+a,s).then((function(e){return 200===e.status?e.json():{cm_urls:[],rev_allow_cookies:1,criteo_rtus:1}})).then((function(e){1===e.criteo_rtus&&r.loadCriteoRTUS();var t=[];return e.cm_urls&&e.cm_urls.length>0&&(e.cm_urls.map((function(e){t.push(e.id)})),r.loadCookieMatcherPixel(e.cm_urls)),new Promise((function(n){return r.setState({enabledDsps:t,revAllowCookies:e?e.rev_allow_cookies:null},n)}))})).catch((function(e){var t={endpoint:"demand",error:e.message,widgetid:r.props.widgetid,site_url:r.state.siteUrl};Object(v.H)(t,"events/api-errors",r.state.isAppleNews,!0)}))},r.loadUserUuid=function(){var e=[];null!==r.state.gdpr&&e.push("gdpr="+r.state.gdpr),null!==r.state.gdprConsent&&e.push("gdpr_consent="+r.state.gdprConsent),null!==r.state.usPrivacy&&e.push("us_privacy="+r.state.usPrivacy),null!==r.state.gpp&&e.push("gpp="+r.state.gpp),null!==r.state.gppSid&&e.push("gpp_sid="+r.state.gppSid);var t=e.length>0?"?"+e.join("&"):"",n={timeout:200};return r.state.isAppleNews||(n.credentials="include"),Object(v.i)("https://"+r.props.endpoint+"/sync"+t,n).then((function(e){return 204===e.status?{uuid:null}:e.json()})).then((function(e){return new Promise((function(t){return r.setState({userUuid:e?e.uuid:null},t)}))})).catch((function(e){var t={endpoint:"sync",error:e.message,widgetid:r.props.widgetid,site_url:r.state.siteUrl};Object(v.H)(t,"events/api-errors",r.state.isAppleNews,!0)}))},r.getUnixEpoch=function(){return Math.floor(Date.now()/1e3)},r.checkCCPA=function(){return new Promise((function(e){return e(Object(v.x)(200,new Promise((function(e){if("function"!=typeof __uspapi)return e({ccpaDone:!0});__uspapi("getUSPData",1,(function(t,n){if(n&&t){var r={ccpaDone:!0};return r.usPrivacy=t.uspString,r.usPrivacy&&""!==r.usPrivacy&&localStorage.setItem("c_us_privacy",r.usPrivacy),e(r)}}))}))))}))},r.checkGDPR=function(){return new Promise((function(e){return e(Object(v.x)(200,new Promise((function(e){if("function"==typeof __tcfapi){var t=[];for(var n in Object({0:203,1:210,2:185,3:277,4:32,5:128,6:344,7:52,8:165,9:14,10:81,11:341,12:599,13:76,14:58,15:333,16:45}))t.push(Object({0:203,1:210,2:185,3:277,4:32,5:128,6:344,7:52,8:165,9:14,10:81,11:341,12:599,13:76,14:58,15:333,16:45})[n]);__tcfapi("getTCData",2,(function(t,n){if(n){var r={gdprDone:!0};return r.gdpr=!0===t.gdprApplies?"1":"0",r.gdprConsent=t.tcString,r.gdpr&&""!==r.gdpr&&(localStorage.setItem("c_gdpr",r.gdpr),localStorage.setItem("c_gdpr_consent",r.gdprConsent)),e(r)}}),t)}else{if("function"!=typeof __cmp)return e({gdprDone:!0});__cmp("getConsentData",null,(function(t,n){if(n){var r={gdprDone:!0};return r.gdpr=!0===t.gdprApplies?"1":"0",r.gdprConsent=t.consentData,r.gdpr&&""!==r.gdpr&&(localStorage.setItem("c_gdpr",r.gdpr),localStorage.setItem("c_gdpr_consent",r.gdprConsent)),e(r)}}))}}))))}))},r.checkGPP=function(){return new Promise((function(e){return e(Object(v.x)(200,new Promise((function(e){if("function"!=typeof __gpp)return e({gppDone:!0});var t=__gpp("getGPPData");if(null!=t&&null!=t.applicableSections&&-1!==t.applicableSections&&null!=t.gppString&&t.gppString.length>0){var n={gppDone:!0};return n.gpp=t.gppString,n.gppSid=Array.isArray(t.applicableSections)?t.applicableSections.join(","):t.applicableSections,n.gppSid&&""!==n.gppSid&&(localStorage.setItem("c_gpp",n.gpp),localStorage.setItem("c_gpp_sid",n.gppSid)),e(n)}}))))}))},r.configureRTBData=function(){var e=JSON.parse(r.props.rtbInfo);r.props.rtbInfo&&r.setState(o(o({},r.state),{},{brandPrefix:"rc"},e))},r.createImageURL=function(e,t,n,i,o,a,s,c,u,l,d,p){if(void 0===i&&(i=null),void 0===o&&(o=!1),void 0===a&&(a=0),void 0===s&&(s=!1),void 0===c&&(c=!1),void 0===u&&(u=!1),void 0===l&&(l=!1),void 0===d&&(d=!1),void 0===p&&(p=null),!(r.props.endpoint&&(t||s||r.props.bannerSize||r.props.rtbInfo)&&e))return null;if(-1===e.indexOf("?url="))return e;var f=0;if(o)f=d?p:Math.floor(Object(v.d)(t,i.width,r.state.device_class));else if(s){var h=Object(v.f)(a,i,!0);f=Math.floor(h.width)}else{f=Math.floor(t/r.state.columns-n)}var A,m=r.props.bannerSize||r.state.ad_size;A=o?Object(v.m)(f):m?Object(v.n)(m,r.state.isAppleNews):Object(v.o)(f);var g=e.split("&")[0].split("?url=")[1];r.state.isRCBranded&&-1!==g.indexOf("revcontent-p0.s3.amazonaws.com")&&(g=g.replace("revcontent-p0.s3.amazonaws.com","media.revcontent.com"));var _=/.gif$/gi.test(g),b=r.state.isAppleNews||m,w=r.props.imageQuality&&r.props.imageQuality>10&&r.props.imageQuality<=100?r.props.imageQuality:A.quality;r.state.isAppleNews&&!m&&(A.quality=90);var y=_?"f_gif,fl_lossy":"f_jpg",x=u?"c_pad,b_auto:predominant":"c_fill,g_faces:auto";b&&!u&&(r.state.canUseWebP&&(y="f_webp",x="c_fill,g_faces:auto"),r.state.isAppleNews||(w="auto:eco"));var C=l?"":"pg_1/";return g.includes("upscaled_images")?""+r.state.cloudinaryPath+y+",h_"+A.height+",w_"+A.width+"/"+C+g:""+r.state.cloudinaryPath+y+",q_"+w+",h_"+A.height+",w_"+A.width+","+x+"/"+C+g},r.getCriteoRTUSId=function(){try{return localStorage.getItem("rev_criteo_rtus_id")}catch(t){var e={endpoint:"local-storage",error:t.message,widgetid:r.props.widgetid,site_url:window.context?window.context.canonicalUrl:window.location.href};Object(v.H)(e,"events/api-errors",r.state.isAppleNews,!0)}},r.loadCriteoRTUS=function(){var e=null!==r.state.gdpr?"&gdpr="+r.state.gdpr+"&gdpr_pd=0":"",t=null!==r.state.gdprConsent?"&gdpr_consent="+r.state.gdprConsent:"",n=null!==r.state.usPrivacy?"&us_privacy="+r.state.usPrivacy:"",i=null!==r.state.gpp?"&gpp="+r.state.gpp:"",o=null!==r.state.gppSid?"&gpp_sid="+r.state.gppSid:"",a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://gum.criteo.com/sync?c=446&r=2&j=dspCriteoRTUSCallback"+e+t+n+i+o,document.body.appendChild(a)},r.dspCriteoRTUSCallback=function(e){try{"OK"===e.status?localStorage.setItem("rev_criteo_rtus_id",e.userid):localStorage.removeItem("rev_criteo_rtus_id")}catch(e){var t={endpoint:"local-storage",error:e.message,widgetid:r.props.widgetid,site_url:window.context?window.context.canonicalUrl:window.location.href};Object(v.H)(t,"events/api-errors",r.state.isAppleNews,!0)}},r.dspCMCallback=function(e){try{"OK"===e.status&&localStorage.setItem("d"+e.id,e.userid)}catch(e){var t={endpoint:"local-storage",error:e.message,widgetid:r.props.widgetid,site_url:window.context?window.context.canonicalUrl:window.location.href};Object(v.H)(t,"events/api-errors",r.state.isAppleNews,!0)}},r.loadCookieMatcherPixel=function(e){e.map((function(e){var t=Date.now();if(!localStorage.getItem("d"+e.id))if("iframe"===e.tag){var n=document.createElement("iframe");n.id="multisync-iframe",n.h="0",n.w="0",n.marginheight="0",n.scrolling="no",n.frameborder="0",n.style.border="0px",n.style.display="none",n.src=e.src+"&rev_dt="+t,document.body.appendChild(n)}else if("script"===e.tag){var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=e.src+"&rev_dt="+t,document.body.appendChild(r)}else{var i=Object(v.c)(e.src+"&rev_dt="+t);document.body.appendChild(i)}}))},r.getRtbUid=function(){var e={};return(r.state.enabledDsps&&r.state.enabledDsps.length>0?r.state.enabledDsps:r.state.cmDSP).map((function(t){try{var n=localStorage.getItem("d"+t);n&&(e[t]=n)}catch(e){}})),e},r.checkIfSet=function(e){return null!=e},r.injectPolyfill=function(e){if("object"==typeof document){var t=document.createElement("script");t.innerHTML=e,document.body.appendChild(t)}},r.fireVcpmEvent=function(e){var t={imp_uuid:r.state.imp_uuid,widget_id:+r.props.widgetid,key:e,type:"standard"};e===g.q.BULBASAUR&&Object(k.a)("rc-page-view",{eventName:"rc-page-view",url:window.location.href,widgetId:+r.props.widgetid,timestamp:Date.now()}),Object(v.H)(t,"events/vcpm-event",r.state.isAppleNews,!0,"s3_and_kinesis")},r.handleIntersectionEvent=function(e){var t,n,i=+(null==(t=e.target)||null==(n=t.dataset)?void 0:n.position),o=window.revcontent[r.props.widgetid].vcpmtracking;i===P&&(e.isIntersecting?o.hasFullVcpmEvent||o.fullVcpmEventTimeout||(o.fullVcpmEventTimeout=setTimeout((function(){var e,t,n;o.hasInitialVcpmEvent||(o.hasInitialVcpmEvent=!0,r.fireVcpmEvent(g.q.BULBASAUR),r.vcpmObserver.unobserve(null==(e=r.topObservationElement)?void 0:e.current));o.hasHalfVcpmEvent||(o.hasHalfVcpmEvent=!0,r.fireVcpmEvent(g.q.IVYSAUR),r.vcpmObserver.unobserve(null==(t=r.middleObservationElement)?void 0:t.current));o.hasFullVcpmEvent||(o.hasFullVcpmEvent=!0,r.fireVcpmEvent(g.q.VENASAUR),r.vcpmObserver.unobserve(null==(n=r.bottomObservationElement)?void 0:n.current))}),1e3)):(clearTimeout(o.fullVcpmEventTimeout),o.fullVcpmEventTimeout=null)),i===E&&(e.isIntersecting?o.hasHalfVcpmEvent||o.halfVcpmEventTimeout||(o.halfVcpmEventTimeout=setTimeout((function(){var e,t;o.hasInitialVcpmEvent||(o.hasInitialVcpmEvent=!0,r.fireVcpmEvent(g.q.BULBASAUR),r.vcpmObserver.unobserve(null==(e=r.topObservationElement)?void 0:e.current));o.hasHalfVcpmEvent||(o.hasHalfVcpmEvent=!0,r.fireVcpmEvent(g.q.IVYSAUR),r.vcpmObserver.unobserve(null==(t=r.middleObservationElement)?void 0:t.current))}),1e3)):(clearTimeout(o.halfVcpmEventTimeout),o.halfVcpmEventTimeout=null)),i===O&&e.isIntersecting&&(o.hasInitialVcpmEvent||o.initialVcpmEventTimeout||(o.initialVcpmEventTimeout=setTimeout((function(){var e;o.hasInitialVcpmEvent||(o.hasInitialVcpmEvent=!0,r.fireVcpmEvent(g.q.BULBASAUR),r.vcpmObserver.unobserve(null==(e=r.topObservationElement)?void 0:e.current))}),1e3))),o.hasInitialVcpmEvent&&o.hasHalfVcpmEvent&&o.hasFullVcpmEvent&&r.vcpmObserver.disconnect()},r.onIntersection=function(e){e.forEach((function(e){r.handleIntersectionEvent(e)}))},r.isObservable=function(){var e,t,n;return(null==(e=r.topObservationElement)?void 0:e.current)&&(null==(t=r.middleObservationElement)?void 0:t.current)&&(null==(n=r.bottomObservationElement)?void 0:n.current)};var i,a,s="",c="",u=!1,l="https://images.revcontent.com/revcontent/image/fetch/";if("object"==typeof document&&(r.props.siteurl?s=r.props.siteurl:window.location&&(s="about:srcdoc"===window.location.href?window.parent.location.href:window.location.href),r.props.icrurl&&(c=r.props.icrurl),u=Object(v.k)("rc-reporting-enabled"),window.dspCriteoRTUSCallback=r.dspCriteoRTUSCallback,window.dspCMCallback=r.dspCMCallback,-1===r.props.endpoint.indexOf("revcontent"))){var d=r.props.endpoint.split(".");a=d[0],l="https://images."+(i=d[1]+"."+d[2])+"/image/fetch/"}var p="mobile"===b.a.userAgent().platform;return r.state={columns:4,rows:3,metricsEnabled:"true"===u,commitHash:"6d09861",client_version:"0.1.0",isNext:r.props.isNext||!1,isAppleNews:"https://news.apple.com"===r.props.siteurl,theme:g.v,siteUrl:s,icrUrl:c,cloudinaryPath:l,whitelabelDomain:i,whitelabelPrefix:a,repeatItems:[],loaded:[],totalSponsoredCount:0,totalTrendingCount:0,repeatSponsoredCount:0,repeatTrendingCount:0,ampNotify:"true"===r.props.rcAmpNotify,isCircuitBreaker:"true"===r.props.isCircuitBreaker,isMobile:p,isAndroid:b.a.userAgent().os.android,isWebView:y()(b.a.userAgent().ua),isExco:!1,styleId:0,isUnlocked:!1,isRCBranded:-1!==r.props.endpoint.indexOf("revcontent"),gdpr:r.checkIfSet(r.props.gdpr)&&""!==r.props.gdpr?"0"===r.props.gdpr||"false"===r.props.gdpr?0:1:null,gdprConsent:r.checkIfSet(r.props.gdprConsent)&&""!==r.props.gdprConsent?r.props.gdprConsent:null,usPrivacy:r.checkIfSet(r.props.usPrivacy)&&""!==r.props.usPrivacy?r.props.usPrivacy:null,gpp:r.checkIfSet(r.props.gpp)&&""!==r.props.gpp?r.props.gpp:null,gppSid:r.checkIfSet(r.props.gppSid)&&""!==r.props.gppSid&&"-1"!==r.props.gppSid?r.props.gppSid:null,generic_token:"Lemj2ZopquqFGaimG5AJKcfhhQo7cKLnG66Ui8RP4l9Tot8SgCDR6xwQD8EZmtb44mOPmLICPUkPrYF51eHAjGBYVVW9F%2Bcl67B1L78Esqc%3D",isVideoAutoplayAllowed:0,requiresIsolation:"true"===r.props.requiresIsolation,disableDemand:null!==r.props.disableDemand,canUseWebP:Object(v.v)(),cmDSP:Object.values(Object({0:2,1:3,2:109,3:115,4:118,5:150,6:153,7:154,8:155,9:157,10:159,11:160,12:161,13:163,14:166,15:167,16:169,17:171})),isAWBackfill:!1,mockRtb:null!==r.props.mockRtb},r.loadedItems=[],r.icrOffset=0,r.impressionVersion=1,r.hasRecordedImpression=!1,r.hasWidgetView=!1,r.hasImpressionStatRecorded=!1,r.hasWidgetViewStatRecorded=!1,r.viewed=[],r.viewQueue=[],r.statsPayloadQueue=[],r.dbcooperTrendingViewQueue=[],r.dbcooperTrendingStatsPayloadQueue=[],r.itemReferences=[],r.vcpmObserver=null,r.widgetWrapperRef=Object(A.createRef)(),r.topObservationElement=Object(A.createRef)(),r.middleObservationElement=Object(A.createRef)(),r.bottomObservationElement=Object(A.createRef)(),r}var i,a;a=t,(i=r).prototype=Object.create(a.prototype),i.prototype.constructor=i,s(i,a);var c=r.prototype;return c.componentDidMount=function(){var e=this;if(window.revcontent[this.props.widgetid]=window.revcontent[this.props.widgetid]||{vcpmtracking:{hasInitialVcpmEvent:!1,initialVcpmEventTimeout:null,hasHalfVcpmEvent:!1,halfVcpmEventTimeout:null,hasFullVcpmEvent:!1,fullVcpmEventTimeout:null}},this.props.polyfill&&this.injectPolyfill(this.props.polyfill.script),this.props.rtbInfo)this.configureRTBData();else{if(!this.props.widgetid){var t="ERROR - Code for widget is malformed. Please ensure that widget id is set before loading javascript or delay setting attributes until after javascript has loaded and manually render the placement.";console.error(t);var n={error:t,widgetid:this.props.widgetid,site_url:this.state.siteUrl};return void Object(v.H)(n,"events/widget-configuration-errors",this.state.isAppleNews,!0)}if(!this.props.endpoint)return void console.error("ERROR - Code for widget is malformed. Please ensure that a valid endpoint is set on the widget code.");if(this.checkJWPlayer(),this.state.isAppleNews)this.loadData();else{var r=[this.checkCCPA(),this.checkGDPR(),this.checkGPP()];Promise.all(r.map((function(e){return e.catch((function(e){return e}))}))).then((function(t){var n={};if(t.filter((function(e){return!(e instanceof Error)&&null!=e})).forEach((function(e){e.ccpaDone&&null!=e.usPrivacy&&(n.usPrivacy=e.usPrivacy),e.gdprDone&&null!=e.gdpr&&(n.gdpr=e.gdpr,n.gdprConsent=e.gdprConsent),e.gppDone&&null!=e.gppSid&&(n.gpp=e.gpp,n.gppSid=e.gppSid)})),null==n.usPrivacy){var r=localStorage.getItem("c_us_privacy");null!=r&&""!==r&&(n.usPrivacy=r)}if(null==n.gdpr){var i=localStorage.getItem("c_gdpr");null!=i&&""!==i&&(n.gdpr=i)}if(null==n.gdprConsent){var o=localStorage.getItem("c_gdpr_consent");null!=o&&""!==o&&(n.gdprConsent=o)}if(null==n.gpp){var a=localStorage.getItem("c_gpp");null!=a&&""!==a&&(n.gpp=a)}if(null==n.gppSid){var s=localStorage.getItem("c_gpp_sid");null!=s&&""!==s&&(n.gppSid=s)}return e.setState(n,(function(){return Promise.resolve()}))})).catch((function(t){var n={endpoint:"iab-gdpr-ccpa",error:t.message,widgetid:e.props.widgetid,site_url:e.state.siteUrl};Object(v.H)(n,"events/api-errors",e.state.isAppleNews,!0)})).then((function(){var t=[];return e.state.disableDemand&&e.state.isAppleNews||t.push(e.loadDemand()),t.length>0?Promise.all(t):Promise.resolve()})).then(this.loadData).catch(this.loadData)}}},c.componentDidUpdate=function(e,t){var n,r,i,o;(this.props.isWindowFocused!==e.isWindowFocused&&this.prepImpressionEvent(),null!=(n=this.widgetWrapperRef)&&n.current)&&(this.state.widget_loaded!==t.widget_loaded&&(this.vcpmObserver=new IntersectionObserver(this.onIntersection),this.setContextState("vcpmObserver",this.vcpmObserver),this.isObservable()&&(this.vcpmObserver.observe(null==(r=this.topObservationElement)?void 0:r.current),this.vcpmObserver.observe(null==(i=this.middleObservationElement)?void 0:i.current),this.vcpmObserver.observe(null==(o=this.bottomObservationElement)?void 0:o.current),this.setContextState("topObservationElement",this.topObservationElement),this.setContextState("middleObservationElement",this.middleObservationElement),this.setContextState("bottomObservationElement",this.bottomObservationElement))))},c.render=function(){var t,n=this.props,r=n.children,i=o(o({},function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(n,["children"])),this.state);return i.setContextState=this.setContextState,i.setContextStateArray=this.setContextStateArray,i.getColumnCount=this.getColumnCount,i.updateItems=this.updateItems,i.fireViewEvent=this.fireViewEvent,i.loadMoreContent=this.loadMoreContent,i.updateItem=this.updateItem,i.appendLoadedItems=this.appendLoadedItems,i.updateNewFeedItems=this.updateNewFeedItems,i.getRepeatItemsLength=this.getRepeatItemsLength,i.widgetWrapperRef=null==(t=this.widgetWrapperRef)?void 0:t.current,i.handleBPAction=this.handleBPAction,i.normalizeURLPaths=this.normalizeURLPaths,i.normalizeEndpointURLs=this.normalizeEndpointURLs,i.queueItemForView=this.queueItemForView,i.fireImpressionEvent=this.fireImpressionEvent,i.createImageURL=this.createImageURL,i.setExcoPosition=this.setExcoPosition,i.itemReferences=this.itemReferences,i.hasWidgetView=this.hasWidgetView,e(I,{ref:this.widgetWrapperRef,"data-nosnippet":!0},e(S.Provider,{value:i},r),e(j,{ref:this.topObservationElement,"data-position":"0"}),e(T,{ref:this.middleObservationElement,"data-position":"1"}),e(L,{ref:this.bottomObservationElement,"data-position":"2"}))},r}(A.Component),function(t){var n=Object(x.a)();return e(h,r({isWindowFocused:n},t))})}).call(this,n("hosL").h)},duBu:function(e,t,n){"use strict";(function(e){function r(){return(r=Object.assign||function(e){for(var t=1;t100&&window.context.requestResize(r.width,r.height)})),this.props.widget_type!==f.w.RTB)&&(this.state={bpIsVisible:!1},window.context&&window.context.onResizeDenied((function(t,n){var r={widget_context:Object(A.a)(e.props),amp_context:Object(A.a)(window.context),width:n,height:t,widgetHeight:e.props.height,widgetWidth:e.props.width};Object(A.H)(r,"events/amp-resize-failures",!1,!0)})),"mobile"===d.a.userAgent().platform&&this.props.setContextState("isMobile",!0))},s.componentDidUpdate=function(e){var t,n=this;if(null!=(t=this.containerRef)&&t.current&&(this.isResizeObserved||(this.isResizeObserved=!0,this.resizeObserver.observe(this.containerRef.current))),this.props.widget_type!==f.w.RTB){var r,i,o;if(this.props.rioc!==e.rioc&&this.configureRioc(),null!=(r=this.containerRef)&&r.current&&this.updateIframeIfNeeded(),this.props.widget_type!==e.widget_type&&(this.addIconSupport(),this.videoPlayerSupport()),this.props.items!==e.items&&this.setWidgetLoaded(),window.rcpbjs)if(this.props.prebid_settings&&!this.prebidConfigured)this.prebidConfigured=!0,(null==(i=this.props.prebid_settings)?void 0:i.is_enabled)&&(null==(o=this.props.prebid_settings.devices)?void 0:o.some((function(e){return f.a[e].includes(n.props.device_class)})))&&Object(m.a)(this.props.prebid_settings,this.props.widgetid,this.props.items,this.props.itemReferences,this.props.columns,this.props.widgetWidth,this.props.excoIndex,this.props.excoColumnSpan,this.props.imp_uuid,!1,!1);if(this.props.widget_loaded!==e.widget_loaded){if(window.context&&this.props.rcAmpNotify){var a;null==(a=window.parent)||a.postMessage({action:"widget-loaded",source:"revcontent"},"*")}if(!this.props.disableDemand){if(window.revcontent&&!window.revcontent.pageviewed){var s=Array.from(document.querySelectorAll("[data-rc-widget], [data-stack-widget], [data-widget-placement]"));if(s&&s.length>0){var c={pubid:this.props.pub_id,domain:window.location.hostname,url:window.location.href,widgets:[]};s.forEach((function(e){c.widgets.push(e.dataset.widgetId)})),Object(A.H)(c,"events/page-view",this.props.isAppleNews,!0)}window.revcontent.pageviewed=!0}var u={width:this.props.width,height:this.props.height,widgetid:this.props.widgetid,pubid:this.props.pub_id,redirected:null!==this.props.redirected,url:window.context?window.context.canonicalUrl:window.location.href,widgetWidth:this.props.widgetWidth};Object(A.H)(u,"events/widget-loaded",this.props.isAppleNews,!0)}this.props.setContextState("widget_loaded_event_fired",!0)}}},s.componentWillUnmount=function(){this.resizeObserver&&this.resizeObserver.disconnect()},s.render=function(t){var n,r,i,o,a,s,c=this,l=null,d=t.isBrandTakeover?f.w.BRAND_TAKEOVER:t.widget_type,p=void 0!==typeof window&&t.requiresIsolation,h=!0===(null==t||null==(n=t.demand_settings)||null==(r=n.back_button_settings)?void 0:r.enabled);if(!d)return null;if(t.bannerSize&&t.items)return e("div",{ref:this.containerRef,className:t.isRCBranded?"rc-wc rc-uid-"+t.widgetid+" "+t.device_class:t.brandPrefix+"-uid-"+t.widgetid},e(u.Suspense,{fallback:e(_.a,null)},e(P,{createImageURL:t.createImageURL,brandPrefix:t.brandPrefix,items:t.items,layout:t.bannerSize})));if(d){if(d===f.w.RTB)return e(u.Suspense,{fallback:e(_.a,null)},e(P,{isRtb:!0,createImageURL:t.createImageURL,brandPrefix:t.brandPrefix,rtbItem:t.item,layout:t.ad_size}));l=this.getLayout(d,t)}var m=null==(i=t.revmoreDevices)?void 0:i.split(",");this.usesRevmore=null!=this.props.revmore&&(m&&m.some((function(e){return function(e,t){var n;return null==(n=f.h[e])?void 0:n.device_classes.includes(t)}(e.trim(),c.props.device_class)}))||this.props.isMobile);var w=null==(o=t.demand_settings)||null==(a=o.openweb_settings)?void 0:a.spot_id;return e(U,{id:t.brandPrefix+"_cont_"+t.widgetid,ref:this.containerRef,isBrandTakeover:t.isBrandTakeover,revMore:this.usesRevmore,revmorePosition:t.revmorePreviewHeight,className:(t.isRCBranded?"rc-wc rc-uid-"+t.widgetid+" "+t.device_class:t.brandPrefix+"-uid-"+t.widgetid+" "+t.brandPrefix+"-"+t.currentDevice)+" "+(t.styleId?"layout_"+t.styleId:"layout_1")},p?e(N,null):null,e(g.a,{showRevMore:this.usesRevmore}),e(u.Suspense,{fallback:e(_.a,null)},e(v.a,{widgetType:d,header:t.header,brandPosition:t.brand_position,deviceClass:t.device_class,isRCBranded:t.isRCBranded,isBrandTakeover:t.isBrandTakeover,brandPrefix:t.brandPrefix,brandLabel:t.brand_label,brandLogo:t.brand_logo,endpoint:t.endpoint,adChoices:t.adchoices,position:"top",isFullNameBranding:t.isFullNameBranding}),w&&this.props.isMobile&&this.props.isAndroid&&e(b.a,{spotId:w}),t.showArticleCirculation&&e(j,null),l,t.beacons?t.beacons.map((function(t){return t.src&&t.src.length>0?e("script",{id:"rc_"+t.type+"_"+Object(A.G)(!1),src:t.src}):e("script",null,t.script)})):null,e(v.a,{widgetType:d,brandPosition:t.brand_position,deviceClass:t.device_class,isRCBranded:t.isRCBranded,isBrandTakeover:t.isBrandTakeover,brandPrefix:t.brandPrefix,brandLabel:t.brand_label,brandLogo:t.brand_logo,endpoint:t.endpoint,adChoices:t.adchoices,position:"bottom",isFullNameBranding:t.isFullNameBranding})),e(u.Suspense,null,t.isRCBranded&&t.modalIsVisible&&e(I,null)),e(u.Suspense,{fallback:e(_.a,null)},t.BPIsVisible&&e(R,{setBPStatus:this.setBPStatus,updateItems:this.props.updateItems,item:t.currentBPDisplayItem})),e(u.Suspense,null,h&&e(T,{widgetId:t.widgetid,pubId:t.pub_id,impUuid:t.imp_uuid,settings:null==(s=t.demand_settings)?void 0:s.back_button_settings,isMobile:t.isMobile})))},n}(c.Component);t.a=Object(h.c)((function(t){return e(D,t)}))}).call(this,n("hosL").h)},eJJ5:function(e,t,n){(function(r){var i;!function(o){"use strict";var a="object"==typeof window&&window||"object"==typeof r&&r||"object"==typeof self&&self||o,s="function"==typeof setImmediate,c="object"==typeof process&&!!process&&"function"==typeof process.nextTick,u=0,l=function(){var e,t,n,r;if(a.MutationObserver)return function(t){e=document.createElement("div"),new MutationObserver((function(){t(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")};if(!s&&a.postMessage&&!a.importScripts&&a.addEventListener){var i="com.setImmediate"+Math.random();r={};return a.addEventListener("message",(function(e){if(e.source===a&&0===e.data.indexOf(i)){var t=+e.data.split(":")[1];r[t](),delete r[t]}}),!1),function(e){var t=9007199254740991===u?0:++u;r[t]=e,a.postMessage(i+":"+t,"*")}}return!s&&a.document&&"onreadystatechange"in document.createElement("script")?function(e){(t=document.createElement("script")).onreadystatechange=function(){t.onreadystatechange=null,t.parentNode.removeChild(t),t=null,e()},document.body.appendChild(t)}:(n=s&&setImmediate||c&&process.nextTick||setTimeout,function(e){n(e)})}();e.exports?e.exports=l:void 0===(i=function(){return l}.call(t,n,t,e))||(e.exports=i)}(this)}).call(this,n("pCvA"))},hQB0:function(e,t,n){"use strict";(function(e){var r,i,o,a=n("UutA"),s=n("2Usk"),c=a.b.div(r||(i=["\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 15%;\n \n svg path,\n svg rect{\n fill: ",";\n }\n"],o||(o=i.slice(0)),i.raw=o,r=i),s.v.primaryColor);t.a=function(){return e(c,null,e("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"24px",height:"30px",viewBox:"0 0 24 30",style:"enable-background:new 0 0 50 50;"},e("rect",{x:"0",y:"10",width:"4",height:"10",fill:"#333",opacity:"0.2"},e("animate",{attributeName:"opacity",attributeType:"XML",values:"0.2; 1; .2",begin:"0s",dur:"0.6s",repeatCount:"indefinite"}),e("animate",{attributeName:"height",attributeType:"XML",values:"10; 20; 10",begin:"0s",dur:"0.6s",repeatCount:"indefinite"}),e("animate",{attributeName:"y",attributeType:"XML",values:"10; 5; 10",begin:"0s",dur:"0.6s",repeatCount:"indefinite"})),e("rect",{x:"8",y:"10",width:"4",height:"10",fill:"#333",opacity:"0.2"},e("animate",{attributeName:"opacity",attributeType:"XML",values:"0.2; 1; .2",begin:"0.15s",dur:"0.6s",repeatCount:"indefinite"}),e("animate",{attributeName:"height",attributeType:"XML",values:"10; 20; 10",begin:"0.15s",dur:"0.6s",repeatCount:"indefinite"}),e("animate",{attributeName:"y",attributeType:"XML",values:"10; 5; 10",begin:"0.15s",dur:"0.6s",repeatCount:"indefinite"})),e("rect",{x:"16",y:"10",width:"4",height:"10",fill:"#333",opacity:"0.2"},e("animate",{attributeName:"opacity",attributeType:"XML",values:"0.2; 1; .2",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"}),e("animate",{attributeName:"height",attributeType:"XML",values:"10; 20; 10",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"}),e("animate",{attributeName:"y",attributeType:"XML",values:"10; 5; 10",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"}))))}}).call(this,n("hosL").h)},hosL:function(e,t,n){"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function i(e){var t=e.parentNode;t&&t.removeChild(e)}function o(e,t,n){var r,i,o,s=arguments,c={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:c[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o0?a(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(m=x[f])||m&&v.key==m.key&&v.type===m.type)x[f]=void 0;else for(h=0;h3)for(n=[n],s=3;s>>1,1),t.i.removeChild(e)}}),Object(O.render)(Object(O.createElement)(p,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function h(e,t){return Object(O.createElement)(f,{__v:e,i:t})}function A(e,t,n){return null==t.__k&&(t.textContent=""),Object(O.render)(e,t),"function"==typeof n&&n(),e?e.__c:null}function m(e,t,n){return Object(O.hydrate)(e,t),"function"==typeof n&&n(),e?e.__c:null}function g(){}function v(){return this.cancelBubble}function _(){return this.defaultPrevented}function b(e,t){return t()}function w(e){return O.createElement.bind(null,e)}function y(e){return!!e&&e.$$typeof===N}function x(e){return y(e)?O.cloneElement.apply(null,arguments):e}function C(e){return!!e.__k&&(Object(O.render)(null,e),!0)}function k(e){return e&&(e.base||1===e.nodeType&&e)||null}n.r(t),n.d(t,"version",(function(){return Y})),n.d(t,"Children",(function(){return R})),n.d(t,"render",(function(){return A})),n.d(t,"hydrate",(function(){return m})),n.d(t,"unmountComponentAtNode",(function(){return C})),n.d(t,"createPortal",(function(){return h})),n.d(t,"createFactory",(function(){return w})),n.d(t,"cloneElement",(function(){return x})),n.d(t,"isValidElement",(function(){return y})),n.d(t,"findDOMNode",(function(){return k})),n.d(t,"PureComponent",(function(){return o})),n.d(t,"memo",(function(){return a})),n.d(t,"forwardRef",(function(){return s})),n.d(t,"unstable_batchedUpdates",(function(){return X})),n.d(t,"StrictMode",(function(){return J})),n.d(t,"Suspense",(function(){return c})),n.d(t,"SuspenseList",(function(){return d})),n.d(t,"lazy",(function(){return l})),n.d(t,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return V})),n.d(t,"unstable_ImmediatePriority",(function(){return H})),n.d(t,"unstable_UserBlockingPriority",(function(){return q})),n.d(t,"unstable_NormalPriority",(function(){return G})),n.d(t,"unstable_LowPriority",(function(){return $})),n.d(t,"unstable_IdlePriority",(function(){return Q})),n.d(t,"unstable_runWithPriority",(function(){return b})),n.d(t,"unstable_now",(function(){return K}));var S=n("QRet");n.d(t,"useState",(function(){return S.k})),n.d(t,"useReducer",(function(){return S.i})),n.d(t,"useEffect",(function(){return S.d})),n.d(t,"useLayoutEffect",(function(){return S.g})),n.d(t,"useRef",(function(){return S.j})),n.d(t,"useImperativeHandle",(function(){return S.f})),n.d(t,"useMemo",(function(){return S.h})),n.d(t,"useCallback",(function(){return S.a})),n.d(t,"useContext",(function(){return S.b})),n.d(t,"useDebugValue",(function(){return S.c})),n.d(t,"useErrorBoundary",(function(){return S.e}));var O=n("hosL");n.d(t,"createElement",(function(){return O.createElement})),n.d(t,"createContext",(function(){return O.createContext})),n.d(t,"createRef",(function(){return O.createRef})),n.d(t,"Fragment",(function(){return O.Fragment})),n.d(t,"Component",(function(){return O.Component})),(o.prototype=new O.Component).isPureReactComponent=!0,o.prototype.shouldComponentUpdate=function(e,t){return i(this.props,e)||i(this.state,t)};var E=O.options.__b;O.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),E&&E(e)};var P="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,I=function(e,t){return null==e?null:Object(O.toChildArray)(Object(O.toChildArray)(e).map(t))},R={map:I,forEach:I,count:function(e){return e?Object(O.toChildArray)(e).length:0},only:function(e){var t=Object(O.toChildArray)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:O.toChildArray},j=O.options.__e;O.options.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);j(e,t,n)};var T=O.options.unmount;O.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),T&&T(e)},(c.prototype=new O.Component).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=u(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(a,a)},c.prototype.componentWillUnmount=function(){this.t=[]},c.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=r({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)}))),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var o=t.__e&&Object(O.createElement)(O.Fragment,null,e.fallback);return o&&(o.__h=null),[Object(O.createElement)(O.Fragment,null,t.__e?null:e.children),o]};var L=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]